#include "iwdg.h"

void IWDG_Init(void)
{
    IWDG_SetPrescaler(IWDG_Prescaler_256);
    IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable);
    IWDG_SetReload(0xff);
    IWDG_Enable();
}

void IWDG_Scan(void)
{
    IWDG_ReloadCounter();
}